// mutations-type
import {
	RANDOMWALLPAPER,
	TYPEWALLPAPER,
} from './mutations-type.js'
// api
import {
	randomWallpaper,
	typeWallpaper,
} from '@/api'
export default {
	async get_randomWallpaper(context, pos = null) {
		const getRandomWallpaper = await randomWallpaper({
			params: pos
		});
		context.commit(RANDOMWALLPAPER, getRandomWallpaper);
	},

	async get_typeWallpaper(context, pos = null) {
		const getTypeWallpaper = await typeWallpaper({
			params: pos
		});
		context.commit(TYPEWALLPAPER, getTypeWallpaper);
	},
}
